package com.shengxing.lljl.service;

import com.shengxing.lljl.dto.UserDto;
import com.shengxing.lljl.common.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shengxing.lljl.vo.UserVo;

/**
 * <p>
 * 用户表-存储用户信息 服务类
 * </p>
 *
 * @author 小邹
 * @since 2024-10-17
 */

public interface IUserService extends IService<User> {
    abstract public User loginService(User user);

    abstract public String save(UserDto userDto);

//    abstract public User registerService(User user);

//    abstract public User mergeExistingAccount(User user);
    abstract public Boolean updateBasicInfService(User newUser);
    abstract public Boolean updatePasswordService(User newUser);
    abstract public Boolean updateEmailService(User newUser);


    String sendEmailCode2Register(String email);

    UserVo getByEmail(String email);

    boolean sendEmailCode2ResetPassword(String email);

    String resetPassword(UserDto userDto);
}
